Web Services with Java by Antonio Martín Sierra & Ramón Egido García

Web Services with Java by Antonio Martín Sierra & Ramón Egido García

Author:Antonio Martín Sierra & Ramón Egido García [Martín Sierra, Antonio]
Language: eng
Format: epub
Publisher: SYNCROM
Published: 2017-01-08T08:00:00+00:00


From here, following the steps outlined in the previous section, we will create a Web

service called ValidationsWS, which exposes a method login() that, making use of the

Operations class, checks if the user exists in the database. The Web service’s implementation

class source code should look as follows:

package service;

import javax.jws.WebMethod;

import javax.jws.WebParam;

import javax.jws.WebService;

import model.*;

@WebService()

public class ValidationsWS {

private String driver="com.mysql.jdbc.Driver";

private String sCon="jdbc:mysql://localhost:3306/books";

private String buser="root";



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.